<?php
require('../../cofd/common.php');
$username = $_GET['username'];
$password = $_GET['password'];
$sql = "SELECT * FROM users WHERE username = '$username' AND password = '$password'";
$query = mysqli_query($conn, $sql);
$num = mysqli_num_rows($query);
if ($num > 0) {
echo json_encode(array('status' => 'success'));
}else{
echo json_encode(array('status' => 'error'));
}
$conn->close();